﻿@model List<DMS.Models.DocumentObject>
@{
    Layout = null;
}
<div class="products">
    @if (Model != null && Model.Count > 0)
    {
        if(Request.Params["catId"]==null)
        { 
            <h3>Danh sách tài liệu</h3>
        }
        else
        {
            <h3>Danh sách tài liệu:@Model[0].CategoryName</h3>
        }
        <ul>
            @foreach (var item in Model)
            {
                <li>
                    <div class="product">
                        <a href="/home/read?docId=@item.DocumentId" class="info" target="_blank">
                            <span class="holder">
                                <img src="@item.DocumentImage" alt="@item.DocumentName" />
                                <span class="book-name">@item.DocumentName</span>
                                @if (!string.IsNullOrEmpty(item.Author))
                                {
                                    <span class="author">by John Smith</span>
                                }
                                <span class="description">@item.DocumentDescription</span>
                            </span>
                        </a>
                        <a href="/home/read?docId=@item.DocumentId" target="_blank" class="buy-btn">XEM TÀI LIỆU</a>
                    </div>
                </li>
            }
        </ul>
    }
</div>